package com.cadre.system.service.impl;

import com.cadre.system.service.PptService;
import org.springframework.stereotype.Service;

@Service("PptService")
public class PptServiceImpl implements PptService {
    private String str = "本次提交省委常委会研究的干部共X人。副省级干部免去省管职务X人；正厅级X人，其中提拔X人（领导职务X人，非领导职务X人），平调X人，免职X人；副厅级X人，其中提拔X人（均为领导职务），平调X人；县委书记X人；企业X人；挂职期满免职X人。";
    private String str2 = "本次提交省委常委会研究的干部共X人。副省级干部免去省管职务X人；正厅级X人，其中提拔X人（领导职务X人，非领导职务X人），平调X人，免职X人；副厅级X人，其中提拔X人（均为领导职务），平调X人；县委书记X人；企业X人；挂职期满免职X人。";

    /*  JADX ERROR: JadxRuntimeException in pass: BlockProcessor
        jadx.core.utils.exceptions.JadxRuntimeException: Unreachable block: B:27:0x01b7
        	at jadx.core.dex.visitors.blocks.BlockProcessor.checkForUnreachableBlocks(BlockProcessor.java:86)
        	at jadx.core.dex.visitors.blocks.BlockProcessor.processBlocksTree(BlockProcessor.java:52)
        	at jadx.core.dex.visitors.blocks.BlockProcessor.visit(BlockProcessor.java:44)
        */
    @Override // com.tdqy.cadre.modular.profess.service.PptService
    public void inputDataForPpt(java.util.List<java.util.Map<String, Object>> r9, int r10, javax.servlet.http.HttpServletResponse r11) {
        /*
        // Method dump skipped, instructions count: 764
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tdqy.cadre.modular.profess.service.impl.PptServiceImpl.inputDataForPpt(java.util.List, int, javax.servlet.http.HttpServletResponse):void");
    }

    /*  JADX ERROR: JadxRuntimeException in pass: BlockProcessor
        jadx.core.utils.exceptions.JadxRuntimeException: Unreachable block: B:39:0x0252
        	at jadx.core.dex.visitors.blocks.BlockProcessor.checkForUnreachableBlocks(BlockProcessor.java:86)
        	at jadx.core.dex.visitors.blocks.BlockProcessor.processBlocksTree(BlockProcessor.java:52)
        	at jadx.core.dex.visitors.blocks.BlockProcessor.visit(BlockProcessor.java:44)
        */
    @Override // com.tdqy.cadre.modular.profess.service.PptService
    public void inputDataForPptType2(java.util.List<java.util.Map<String, Object>> r11, int r12, javax.servlet.http.HttpServletResponse r13) {
        /*
        // Method dump skipped, instructions count: 831
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tdqy.cadre.modular.profess.service.impl.PptServiceImpl.inputDataForPptType2(java.util.List, int, javax.servlet.http.HttpServletResponse):void");
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r7v0, types: [com.tdqy.cadre.modular.profess.service.impl.PptServiceImpl] */
    /* JADX WARN: Type inference failed for: r12v0, types: [double] */
    /* JADX WARN: Type inference failed for: r0v12 */
    /* JADX WARN: Type inference failed for: r0v13, types: [double] */
    /* JADX WARN: Type inference failed for: r0v39 */
    /* JADX WARNING: Unknown variable types count: 1 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private double getFrontSize(double r8, double r10, double r12, String r14) {
        /*
            r7 = this;
            r0 = r14
            java.lang.String r1 = "\n"
            java.lang.String[] r0 = r0.split(r1)
            r15 = r0
            r0 = r12
            r1 = 4634766966517661696(0x4052000000000000, double:72.0)
            double r0 = r0 / r1
            r1 = 4636455816377925632(0x4058000000000000, double:96.0)
            double r0 = r0 * r1
            r16 = r0
            r0 = r10
            r1 = r16
            r2 = 4610289902542903050(0x3ffb0a3d70a3d70a, double:1.69)
            double r1 = r1 * r2
            double r0 = r0 / r1
            r18 = r0
            r0 = r7
            r1 = r12
            r2 = r15
            r3 = r8
            int r0 = r0.getcol(r1, r2, r3)
            r20 = r0
            r0 = r20
            double r0 = (double) r0
            r1 = r18
            double r1 = java.lang.Math.floor(r1)
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r0 >= 0) goto L_0x0039
            r0 = r12
            return r0
        L_0x0039:
            r0 = r12
            r21 = r0
        L_0x003d:
            r0 = r21
            r1 = 4616189618054758400(0x4010000000000000, double:4.0)
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r0 < 0) goto L_0x0096
            r0 = r21
            r1 = 4634766966517661696(0x4052000000000000, double:72.0)
            double r0 = r0 / r1
            r1 = 4636455816377925632(0x4058000000000000, double:96.0)
            double r0 = r0 * r1
            r16 = r0
            r0 = r10
            r1 = r16
            r2 = 4610289902542903050(0x3ffb0a3d70a3d70a, double:1.69)
            double r1 = r1 * r2
            double r0 = r0 / r1
            double r0 = java.lang.Math.ceil(r0)
            r18 = r0
            r0 = r7
            r1 = r21
            r2 = r15
            r3 = r8
            int r0 = r0.getcol(r1, r2, r3)
            r20 = r0
            r0 = r18
            r1 = r20
            double r1 = (double) r1
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r0 <= 0) goto L_0x007a
            r0 = r21
            r12 = r0
            r0 = r12
            return r0
        L_0x007a:
            r0 = r21
            r1 = 4616189618054758400(0x4010000000000000, double:4.0)
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            if (r0 != 0) goto L_0x008a
            r0 = r21
            r12 = r0
            r0 = r12
            return r0
        L_0x008a:
            r0 = r21
            r1 = 4607182418800017408(0x3ff0000000000000, double:1.0)
            double r0 = r0 - r1
            int r0 = (int) r0
            short r0 = (short) r0
            double r0 = (double) r0
            r21 = r0
            goto L_0x003d
        L_0x0096:
            r0 = r12
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tdqy.cadre.modular.profess.service.impl.PptServiceImpl.getFrontSize(double, double, double, java.lang.String):double");
    }

    public int getcol(double frontsize, String[] strArr, double width) {
        double widthsize = width / ((frontsize / 72.0d) * 96.0d);
        int col = strArr.length;
        for (String string : strArr) {
            if (((double) string.length()) / widthsize > 1.0d) {
                col = (int) (((double) col) + Math.ceil((((double) string.length()) / widthsize) - 1.0d));
            }
        }
        return col;
    }
}
